<template>
  <div>
    <h2>当前计数: {{ $store.state.counter }}</h2>
    <hr />
    <button @click="increment">+1</button>
    <hr />
  </div>
</template>

<script>
export default {
  methods: {
    increment() {
      // this.$store.dispatch("incrementAction", { count: 100 });
      this.$store.dispatch({
        type: "incrementAction",
        count: 100,
      });
    },
  },
  mounted() {
    this.$store.dispatch("getHomeMultiData");
  },
};
</script>

<style scoped></style>
